package org.example.service;

import org.example.pojo.Result;
import org.example.pojo.User;

public interface UserService {
    User findByUserName(String username);

    Result register(String username, String password);

    Result<String> login(String username, String password);

    Result<User> userInfo();

    Result update(User user);

    Result updateAvatar(String avatarUrl);

    Result updatePwd(String oldPwd, String newPwd, String rePwd, String token);
}
